#include "comtradedigitalchannel.h"

ComtradeDigitalChannel::ComtradeDigitalChannel(QObject *parent)
    : QObject{parent}
{

}

ComtradeDigitalChannel::~ComtradeDigitalChannel()
{
}

void ComtradeDigitalChannel::parse_init(QByteArray &data)
{
    QList<QByteArray> tokens = data.split(',');

    m_Dn = tokens.value(0);
    m_ch_id = tokens.value(1);
    m_ph = tokens.value(2);
    m_ccbm = tokens.value(3);
    m_y = tokens.value(4);
}
